/**
 * 登录
 */
import LoginMgr from "../dataMgr/LoginMgr";
import UI_Ctr from "../Utils/UI_Ctr";

const {ccclass, property} = cc._decorator;

@ccclass
export default class UILogin_Ctr extends UI_Ctr {

    onLoad () {
        console.log("=========UILogin_Ctr onLoad==========");
    }

    start () {
        super.onLoad();
        console.log("=========UILogin_Ctr start==========");

        this.AddButtonListener("btnLoginYK",this,this.onLoginYKClick)
    }

    onLoginYKClick(){
        LoginMgr.Instance.OneKeyRegAccount();
    }

    // update (dt) {}
}
